require(['./config'], () => {
    require(['swiper', 'header', 'footer', 'service', 'sidebar'], (Swiper) => {
        class Index {
            constructor() {
                this.swiper()
            }
            swiper() {
                var mySwiper = new Swiper('.swiper-container', {
                    direction: 'horizontal', // 垂直切换选项
                    loop: true, // 循环模式选项
                    //^速度
                    speed: 1000,
                    autoplay: {
                        delay: 3200
                    },
                    //^手掌
                    grabCursor: true,
                    
                })
                // console.log($(".sidebar-top"))
            }
        }
        new Index()
    })
})